// 数据中心
const route = {
  meta: {
    roles: ['data_center'],
    title: '数据中心',
    icon: 'shujuzhongxin-weixuan',
    activeIcon: 'shujuzhongxin-xuanzhong',
    group: 'data'
  },
  path: '/data_center',
  component: () => import(/* webpackChunkName: "main-index" */ '@views/index.vue'),
  redirect: '/data_center/index',
  children: [
    {
      meta: {
        roles: ['data_center']
      },
      path: 'index',
      name: 'DataCenter',
      component: () => import(/* webpackChunkName: "data-center" */ '@views/dataCenter/index.vue'),
      children: [
        {
          meta: {
            roles: ['child_callSheet'],
            title: '通话记录',
            group: 'call_data'
          },
          path: 'child_callSheet',
          name: 'call',
          component: () => import(/* webpackChunkName: "call-data" */ '@/views/dataCenter/callData/index.vue')
        },
        {
          meta: {
            roles: ['webchat_session'],
            title: '会话记录',
            group: 'webchat_data'
          },
          path: 'webchat_session',
          name: 'webchat',
          component: () => import(/* webpackChunkName: "webchat-data" */ '@/views/dataCenter/webchatData/index.vue')
        },
        {
          meta: {
            roles: ['im_report_session'],
            title: '会话报表',
            group: 'report'
          },
          path: 'report_session',
          name: 'report_session',
          component: () => import('@/views/dataCenter/report/sessionReport.vue')
        },
        {
          meta: {
            roles: ['agent_report'],
            title: '座席报表',
            group: 'report'
          },
          path: 'report_agent',
          name: 'report_agent',
          component: () => import('@/views/dataCenter/report/agentReport.vue')
        },
        {
          meta: {
            roles: ['report_outgoing'], // report_outgoing
            title: '外呼报表',
            group: 'call_report'
          },
          path: 'out_call_report',
          name: 'outCallReport',
          component: () => import('@/views/dataCenter/report/outboundCallReport.vue')
        },
        {
          meta: {
            roles: ['report_incoming'], // report_outgoing
            title: '呼入报表',
            group: 'call_report'
          },
          path: 'in_call_report',
          name: 'inCallReport',
          component: () => import('@/views/dataCenter/report/inboundCallReport.vue')
        },
        {
          meta: {
            roles: ['report_queue'], // report_outgoing
            title: '技能组报表',
            group: 'call_report'
          },
          path: 'in_call_queue_report',
          name: 'inCallQueueReport',
          component: () => import('@/views/dataCenter/report/callQueueReport.vue')
        },
        {
          meta: {
            roles: ['report_agent'], // report_agent
            title: '座席报表',
            group: 'call_report'
          },
          path: 'in_call_agent_report',
          name: 'inCallAgentReport',
          component: () => import('@/views/dataCenter/report/callAgentReport.vue')
        },
        {
          meta: {
            roles: ['im_monitor_data'],
            title: '在线监控',
            group: 'monitor'
          },
          path: 'online_monitoring',
          name: 'onlineMonitoring',
          component: () => import(/* webpackChunkName: "webchat-data" */ '@/views/dataCenter/onlineMonitoring/index.vue')
        },
        {
          meta: {
            roles: ['im_monitor_log'],
            title: '在线座席日志',
            group: 'monitor'
          },
          path: 'im_monitor_log',
          name: 'im_monitor_log',
          component: () => import(/* webpackChunkName: "im_monitor_log" */ '@/views/dataCenter/agentRecord/index.vue')
        },
        {
          meta: {
            roles: ['call_monitor'],
            title: '通话监控',
            group: 'call_monitor'
          },
          path: 'call_monitoring',
          name: 'callMonitoring',
          component: () => import(/* webpackChunkName: "webchat-data" */ '@/views/dataCenter/onlineMonitoring/callMonitoring.vue')
        },
        {
          meta: {
            roles: ['workorder_basic_report'],
            title: '基础报表',
            group: 'work_report'
          },
          path: 'work_report',
          name: 'workReport',
          component: () => import(/* webpackChunkName: "webchat-data" */ '@/views/dataCenter/workReport/index.vue')
        }
      ]
    }
  ]
}

export default route
